<?php
echo '<pre>';
print_r($_POST);
print_r($_FILES);
echo '</pre>';
?>
<form action="" method="post"
enctype="multipart/form-data">
  Name :<input type="text" name="uname"/><br>
  Avatar : <input type="file" name="avatar"/><br>
  <input type="submit" value="Upload Data !!" />
</form>
